FROM  10.168.1.170/public/openjdk:8

MAINTAINER rongtu

#可在build时通过--build-arg参数传入（docker build --build-arg TIME_ZONE=Asia/Shanghai Dockerfile）
#List of tz database time zones
#https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
ARG TIME_ZONE=Asia/Shanghai

ENV JAVA_OPTS=""

#设置时区&&给执行文件增加可执行权限
RUN /bin/cp /usr/share/zoneinfo/${TIME_ZONE} /etc/localtime \
    && echo ${TIME_ZONE} >/etc/timezone

RUN mkdir -p /taxi

WORKDIR /taxi

#EXPOSE 10002

ADD ./ruoyi-admin/target/ruoyi-admin.jar ./

CMD ["/bin/sh", "-c", "java $JAVA_OPTS -jar ruoyi-admin.jar"]